home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / System Rules - Desk Accessory / Makefile < prev   
Encoding:
Makefile  |  1994-11-15  |  2.3 KB  |  52 lines  |  [TEXT/MPS ]

  1. #
  2. #    mark young • 08/02/94
  3. #    
  4.  
  5. # To build this example, choose the "Build…" menu item from within
  6. # the "Build" menu in MPW. When asked for Program Name, type in the 
  7. # script name, in this case "daRules" ( without double quotes ) 
  8. # and press the Enter key. Be sure that the Current Working Directory
  9. # for MPW is set to the directory containing this example.
  10.  
  11. # To build the Debugger version of this example, choose the "Build…" 
  12. # menu item from within the "Build" menu in MPW. When asked for Program 
  13. # Name, type in the script name, in this case "daRules.debug" ( without 
  14. # double quotes ) and press the Enter key. Be sure that the Current 
  15. # Working Directory for MPW is set to the directory containing this example.
  16.  
  17. # If you want to use this makefile to build an installation from an 
  18. # installer source script ( .r ) with a different filename, just replace 
  19. # "daRules" with the filename for your installer source script but 
  20. # leave off the ".r" portion of the source script filename.
  21. scriptName                = daRules
  22. debugScriptName            = "{scriptName}.debug"
  23.  
  24. # You may change the following paths as you see fit. Currently all paths 
  25. # are set so that scripts will compile when using the original directory
  26. # layout from the Installer SDK.
  27.  
  28. # You may place the ScriptCheck tool in the 'MPW:Tools' directory. Doing this
  29. # removes the need for the {ScriptCheckDir} variable within the makefile.
  30. ScriptCheckDir            = :::ScriptCheck 4.0.3:
  31.  
  32. # You may place "InstallerTypes.r" file in the 'MPW:Interfaces:RIncludes:' directory. 
  33. # Doing this removes the need for the {InstallerRIncDir} variable or -i specification
  34. # for Rez within the makefile.
  35. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  36.  
  37. # You may place "Installer Debugger.r" file in the 'MPW:Interfaces:RIncludes:' directory. 
  38. # Doing this removes the need for the {InstallerDebuggerDir} variable within the makefile.
  39. InstallerDebuggerDir    = :::Installer Debugger 4.0:
  40.  
  41. "{debugScriptName}" ƒ "{scriptName}"
  42.     Duplicate -y {scriptName} "{scriptName} w/ Debugger"
  43.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  44.  
  45. {scriptName} ƒ "{scriptName}.r"
  46.     set theTime    "'`date -d -s` 12:00:00 PM'"
  47.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  48.     SetFile -a b -d {theTime} {scriptName}
  49.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  50.     SetFile -m {theTime} "{scriptName}"
  51.  
  52.